package lidongp.service.impl;

import lidongp.dao.lidongpDao;
import lidongp.entity.BjEntity;
import lidongp.entity.Page;
import lidongp.entity.lidongpengEntity;
import lidongp.service.lidongpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("lidongpservice")
public class lidongpServiceImpl implements lidongpService {
    @Resource
    lidongpDao dao;
    @Override
    public void save(lidongpengEntity lidongpEntity) {
        dao.save(lidongpEntity);
    }

    @Override
    public int queryCount(String name) {
        return dao.queryCount(name);
    }

    @Override
    public List<lidongpengEntity> queryPage(Page page, String name) {
        return dao.queryPage(page, name);
    }

    @Override
    public lidongpengEntity edit(lidongpengEntity lidongpEntity) {
        return dao.edit(lidongpEntity);
    }

    @Override
    public void del(lidongpengEntity lidongpEntity) {
        dao.del(lidongpEntity);
    }

    @Override
    public List<BjEntity> bj() {
        return dao.bj();
    }
}
